package com.sunnyebuy.merchant.po;

import java.io.Serializable;
import java.sql.Timestamp;
import java.util.List;

import javax.persistence.CascadeType;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.OneToMany;
import javax.persistence.Table;

/**
 * The persistent class for the customer_order_shipping_address database table.
 * 
 */
@Entity
@Table(name = "customer_order_shipping_address")
public class CustomerOrderShippingAddress implements Serializable {
	private static final long serialVersionUID = 1L;
	private String orderShippingAddressId;
	private Timestamp createdTime;
	private String customerCity;
	private String customerCountry;
	private String customerEmail;
	private String customerFirstName;
	private String customerLastName;
	private String customerPhone;
	private String customerPostcode;
	private String customerState;
	private String customerStreet1;
	private String customerStreet2;
	private List<CustomerOrder> customerOrders;

	public CustomerOrderShippingAddress() {
	}

	@Id
	@GeneratedValue(strategy = GenerationType.IDENTITY)
	@Column(name = "order_shipping_address_id")
	public String getOrderShippingAddressId() {
		return this.orderShippingAddressId;
	}

	public void setOrderShippingAddressId(String orderShippingAddressId) {
		this.orderShippingAddressId = orderShippingAddressId;
	}

	@Column(name = "created_time")
	public Timestamp getCreatedTime() {
		return this.createdTime;
	}

	public void setCreatedTime(Timestamp createdTime) {
		this.createdTime = createdTime;
	}

	@Column(name = "customer_city")
	public String getCustomerCity() {
		return this.customerCity;
	}

	public void setCustomerCity(String customerCity) {
		this.customerCity = customerCity;
	}

	@Column(name = "customer_country")
	public String getCustomerCountry() {
		return this.customerCountry;
	}

	public void setCustomerCountry(String customerCountry) {
		this.customerCountry = customerCountry;
	}

	@Column(name = "customer_email")
	public String getCustomerEmail() {
		return this.customerEmail;
	}

	public void setCustomerEmail(String customerEmail) {
		this.customerEmail = customerEmail;
	}

	@Column(name = "customer_first_name")
	public String getCustomerFirstName() {
		return this.customerFirstName;
	}

	public void setCustomerFirstName(String customerFirstName) {
		this.customerFirstName = customerFirstName;
	}

	@Column(name = "customer_last_name")
	public String getCustomerLastName() {
		return this.customerLastName;
	}

	public void setCustomerLastName(String customerLastName) {
		this.customerLastName = customerLastName;
	}

	@Column(name = "customer_phone")
	public String getCustomerPhone() {
		return this.customerPhone;
	}

	public void setCustomerPhone(String customerPhone) {
		this.customerPhone = customerPhone;
	}

	@Column(name = "customer_postcode")
	public String getCustomerPostcode() {
		return this.customerPostcode;
	}

	public void setCustomerPostcode(String customerPostcode) {
		this.customerPostcode = customerPostcode;
	}

	@Column(name = "customer_state")
	public String getCustomerState() {
		return this.customerState;
	}

	public void setCustomerState(String customerState) {
		this.customerState = customerState;
	}

	@Column(name = "customer_street1")
	public String getCustomerStreet1() {
		return this.customerStreet1;
	}

	public void setCustomerStreet1(String customerStreet1) {
		this.customerStreet1 = customerStreet1;
	}

	@Column(name = "customer_street2")
	public String getCustomerStreet2() {
		return this.customerStreet2;
	}

	public void setCustomerStreet2(String customerStreet2) {
		this.customerStreet2 = customerStreet2;
	}

	@OneToMany(mappedBy = "customerOrderShippingAddress",cascade = { CascadeType.ALL })
	public List<CustomerOrder> getCustomerOrders() {
		return this.customerOrders;
	}

	public void setCustomerOrders(List<CustomerOrder> customerOrders) {
		this.customerOrders = customerOrders;
	}

}